Versions:
lief-patchelf is a software utility published by the lief-project that provides an implementation of the original patchelf tool created by NixOS (NixOS/patchelf), rebuilt on top of the LIEF library. The original patchelf is a well-known command-line utility in the Linux ecosystem, and this implementation reproduces its functionality while leveraging LIEF, a library designed for parsing and modifying executable formats. As such, lief-patchelf falls within the category of binary manipulation and development tooling, and it is relevant for developers, system integrators, and engineers who work with ELF executables and shared libraries on Unix-like systems. The purpose of the tool, following in the footsteps of the original patchelf it reimplements, is to inspect and modify properties of existing ELF binaries after they have been compiled. Typical use cases in this domain include adjusting the dynamic linker (interpreter) referenced by an executable, modifying the library search path (RPATH or RUNPATH) embedded in binaries and shared objects, and adapting prebuilt binaries so they can run in environments with different directory layouts or library locations. Such capabilities are commonly required in packaging workflows, reproducible build systems, container image preparation, and the distribution of portable or relocatable software, all contexts in which the original NixOS patchelf has been widely adopted. By basing its implementation on LIEF, lief-patchelf aligns itself with a broader ecosystem of format-parsing and binary-editing tools maintained by the lief-project. The current version of lief-patchelf is 1.0.0, and the catalog records two published versions of the software in total, indicating an active release history beyond the initial milestone. The 1.0.0 release represents a stable, major-versioned point in the project's development. Users evaluating the tool can consider it as a LIEF-based alternative to the upstream NixOS/patchelf implementation, suitable for workflows that already rely on LIEF components or that benefit from a maintained reimplementation of the original utility's behavior.
Tags: